package com.atguigu.eduservice.client;

import com.atguigu.commonutils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-vod")
@Component
public interface VodClientService {
    @DeleteMapping("/eduvod/video/removeVideo/{id}")
    public Result remove(@PathVariable(value = "id") String id);

    //删除多个阿里云视频的接口
    @DeleteMapping("/eduvod/video/delete-batch")
    public Result deleteBatch(@RequestParam(value = "videoIdList") List<String> videoIdList);
}













